<template>
  <div>
    shouye
    {{ fatherNum }}
    <!-- <Shopping v-model="fatherNum" /> -->
    <!-- <Shopping :value="fatherNum" @input="fatherNum = $event" /> -->
    <Shopping :num="fatherNum" @input="fatherNum = $event" />
    {{ $t('xxx') }}
    <el-button type="primary" @click="clickBtn">切换语言</el-button>
    <div class="box">
      <Calendar :value.sync="time" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fatherNum: 1,
      time: new Date()
    }
  },
  methods: {
    clickBtn() {
      console.log(this.$i18n.locale === 'zh')
      this.$i18n.locale === 'zh'
        ? (this.$i18n.locale = 'en')
        : (this.$i18n.locale = 'zh')
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  width: 700px;
  height: 800px;
}
</style>
